package models

import (
	// "fmt"

	// "Web-Shop/modules/utils"

	"github.com/astaxie/beego/orm"
)

func (m *GoodsType) ReadGoodsTypes() (GoodsTypes []*GoodsType, err error) {
	if _, err = orm.NewOrm().QueryTable("GoodsType").All(&GoodsTypes); err != nil {
		return GoodsTypes, err
	}
	return GoodsTypes, nil
}
